﻿using Kavaa.Modules.PortailMedical.Entity;
using Kavaa.Modules.PortailMedical.Entity;
using Kavaa.Modules.PortailMedical.Proxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Kavaa.Modules.PortailMedical.Presentation.Services
{
    internal static class CliniqueService
    {
        public static  Reservations GetReservCliniqueAccordees(int IdClinique)
        {
            return (new CliniqueClient()).GetReservCliniqueAccordees(IdClinique);
        }

        public static  Reservations GetReservCliniqueEnCours(int IdClinique)
        {
            return (new CliniqueClient()).GetReservCliniqueEnCours(IdClinique);

        }
        public static String GetBlocReserv(int IdReserv)
        {
            return (new CliniqueClient()).GetBlocReserv(IdReserv);
        }

        public static  void ConfirmReserv(int reservId)
        {
            (new CliniqueClient()).ConfirmReserv(reservId);
        }
        public static void RejectReserv(int reservId)
        {
            (new CliniqueClient()).RejectReserv(reservId);
        }
        public static Accreditations GetAccreditationsAttente(int cliniqueId)
        {
            return (new CliniqueClient()).GetAccreditationsAttente(cliniqueId);
        }
        public static void UpdateEtatAccredit(int etat, int id)
        {
            (new CliniqueClient()).UpdateEtatAccredit(etat, id);
        }

        public static int SaveRessourceClinique(int RessourceId, int CliniqueId)
        {
            return (new CliniqueClient()).SaveRessourceClinique(RessourceId, CliniqueId);
        }

        public static void SavePropriete(int CategorieId, String ProprieteName, String ProprieteValue)
        {
            (new CliniqueClient()).SavePropriete(CategorieId, ProprieteName, ProprieteValue);
        }

        public static void SaveActesCategorie(int ActeId, int CategorieId)
        {
            (new CliniqueClient()).SaveActesCategorie(ActeId, CategorieId);
        }

        public static  int SaveCategorie(String Categorie, int RessourceCliniqueId)
        {
            return (new CliniqueClient()).SaveCategorie(Categorie, RessourceCliniqueId);
        }
        public static Categories GetRessourcesClinique(int CliniqueId)
        {
            return (new CliniqueClient()).GetRessourcesClinique(CliniqueId);
        }
        public static Reservations GetReservationPatient(int ReservId)
        {
            return (new CliniqueClient()).GetReservationPatient(ReservId);
        }
        public static void SaveActeClinique(int[] ActesId, int CliniqueId)
        {
            (new CliniqueClient()).SaveActeClinique(ActesId, CliniqueId);
        }
        
    }
}